/**
 * 
 */
package com.itee.protocal.concent;

/**
 * @author Administrator
 * 
 */
public interface AFN {

	/**
	 * 确认∕否认
	 */
	public static final byte H00_ACK = 0x00;
	/**
	 * 初始化
	 */
	public static final byte H01_INIT = 0x01;
	/**
	 * 数据转发
	 */
	public static final byte H02_DR = 0x02;
	/**
	 * 查询数据
	 */
	public static final byte H03_CDATA = 0x03;
	/**
	 * 链路接口检测
	 */
	public static final byte H04_IIC = 0x04;
	/**
	 * 控制命令
	 */
	public static final byte H05_CD = 0x05;
	/**
	 * 主动上报
	 */
	public static final byte H06_IR = 0x06;
	/**
	 * 路由查询
	 */
	public static final byte H10_RQ = 0x10;
	/**
	 * 路由设置
	 */
	public static final byte H11_RS = 0x11;
	/**
	 * 路由控制
	 */
	public static final byte H12_RC = 0x12;
	
	/**
	 * 路由数据转发
	 */
	public static final byte H13_RDF = 0x13;
	/**
	 * 路由数据抄读
	 */
	public static final byte H14_RDR = 0x14;
	/**
	 * 文件传输
	 */
	public static final byte H15_FT = 0x15;











    /**
     * 接收数据单元 长度
     */
    public static final int[][] RECEIVE_DATA_LENGTH = {
            {0, 0, 0, 0},
            {1, 0, 0, 0},
            {2, 0, 0, 0},
            {3, 0, 0, 0},
            {4, 0, 0, 0},
            {5, 0, 0, 0},
            {6, 0, 0, 0},
            {7, 0, 0, 0},
            {8, 0, 0, 0},
            {9, 0, 0, 0},
            {10, 0, 0, 0},
            {11, 0, 0, 0},
            {12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 52, 0, 0, 0, 0, 0,
                    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0,
                    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
                    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
                    0, 0, 0, 0, 0, 0, 0, 51, 0, 0, 0, 11}, {13, 0, 0, 0}, {14, 0, 0, 0},
            {15, 0, 0, 0}, {16, 0, 0, 0}, {17, 0, 0, 0}, {18, 0, 0, 0}};

    /**
     * 确认⁄否认
     */
    public static final byte H00 = 0x0;

    /**
     * 复位
     */
    public static final byte H01 = 0x01;

    /**
     * 链路接口检测
     */
    public static final byte H02 = 0x02;
    /**
     * 中继站命令
     */
    public static final byte H03 = 0x03;
    /**
     * 设置参数
     */
    public static final byte H04 = 0x04;
    /**
     * 控制命令
     */
    public static final byte H05 = 0x05;
    /**
     * 身份认证及密钥协商
     */
    public static final byte H06 = 0x06;
    /**
     * 备用
     */
    public static final byte H07 = 0x07;
    /**
     * 请求被级联终端主动上报
     */
    public static final byte H08 = 0x08;
    /**
     * 请求终端配置
     */
    public static final byte H09 = 0x09;
    /**
     * 查询参数
     */
    public static final byte H0A = 0x0A;
    /**
     * 请求任务数据
     */
    public static final byte H0B = 0x0B;
    /**
     * 请求1类数据（实时数据）
     */
    public static final byte H0C = 0x0C;
    /**
     * 请求2类数据（历史数据）
     */
    public static final byte H0D = 0x0D;
    /**
     * 请求3类数据（事件数据）
     */
    public static final byte H0E = 0x0E;
    /**
     * 文件传输
     */
    public static final byte H0F = 0x0F;

    /**
     * 数据转发，用于透抄电表。
     */
    public static final byte H10 = 0x10;

    public static final byte HFD = (byte) 0xFD;
}
